module.exports = {
  apps: [
    {
      name: 'wow-server',
      script: './src/app.js',

      error_file: './logs/err.log',
      out_file: './logs/out.log',
      log_file: './logs/combined.log',
      time: true,

      // Options reference: https://pm2.keymetrics.io/docs/usage/application-declaration/
      // args: 'one two',
      instances: -1,
      exec_mode: 'cluster',
      autorestart: true,
      watch: true,
      ignore_watch: ['node_modules'],
      max_memory_restart: '1G',
      env: {
        PORT: 3000,
        NODE_ENV: 'development',
        DEBUG: 'wow.*',
      }
    }
  ]
};
